/*  1:   */ package org.jetbrains.jps.model.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsSimpleElement;
import org.jetbrains.jps.model.ex.JpsElementBase;

/*  4:   */
/*  5:   */
/*  6:   */ 
/*  7:   */ public class JpsSimpleElementImpl<D>
/*  8:   */   extends JpsElementBase<JpsSimpleElementImpl<D>>
/*  9:   */   implements JpsSimpleElement<D>
/* 10:   */ {
/* 11:   */   private D a;
/* 12:   */   
/* 13:   */   public JpsSimpleElementImpl(D paramD)
/* 14:   */   {
/* 15:29 */     this.a = paramD;
/* 16:   */   }
/* 17:   */   
/* 18:   */   private JpsSimpleElementImpl(JpsSimpleElementImpl<D> paramJpsSimpleElementImpl)
/* 19:   */   {
/* 20:33 */     this.a = paramJpsSimpleElementImpl.a;
/* 21:   */   }
/* 22:   */   
/* 23:   */   @NotNull
/* 24:   */   public D getData()
/* 25:   */   {
/* 26:39 */     Object tmp4_1 = this.a;
/* 27:39 */     if (tmp4_1 == null) {
/* 28:39 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsSimpleElementImpl", "getData" }));
/* 29:   */     }
/* 30:39 */     return tmp4_1;
/* 31:   */   }
/* 32:   */   
/* 33:   */   public void setData(@NotNull D paramD)
/* 34:   */   {
/* 35:44 */     if (paramD == null) {
/* 36:44 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsSimpleElementImpl", "setData" }));
/* 37:   */     }
/* 38:44 */     if (!this.a.equals(paramD))
/* 39:   */     {
/* 40:45 */       this.a = paramD;
/* 41:46 */       fireElementChanged();
/* 42:   */     }
/* 43:   */   }
/* 44:   */   
/* 45:   */   @NotNull
/* 46:   */   public JpsSimpleElementImpl<D> createCopy()
/* 47:   */   {
/* 48:53 */     void tmp8_5 = new JpsSimpleElementImpl(this);
/* 49:53 */     if (tmp8_5 == null) {
/* 50:53 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsSimpleElementImpl", "createCopy" }));
/* 51:   */     }
/* 52:53 */     return tmp8_5;
/* 53:   */   }
/* 54:   */   
/* 55:   */   public void applyChanges(@NotNull JpsSimpleElementImpl<D> paramJpsSimpleElementImpl)
/* 56:   */   {
/* 57:58 */     if (paramJpsSimpleElementImpl == null) {
/* 58:58 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsSimpleElementImpl", "applyChanges" }));
/* 59:   */     }
/* 60:58 */     setData(paramJpsSimpleElementImpl.getData());
/* 61:   */   }
/* 62:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.impl.JpsSimpleElementImpl

 * JD-Core Version:    0.7.0.1

 */